package com.itheima.springboot01_02faster;

import com.itheima.springboot01_02faster.pojo.Person;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringBoot0102fasterApplication {

    public static void main(String[] args) {

        //获取IOC容器对象
        ConfigurableApplicationContext applicationContext = SpringApplication.run(SpringBoot0102fasterApplication.class, args);
        //获取IOC容器中的对象
        Person person = applicationContext.getBean(Person.class);

        System.out.println(person);
    }

}
